home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / xlibpr3.zip / README.3 < prev   
Text File  |  1991-10-04  |  2KB  |  69 lines

  1. BUILD INSTRUCTIONS
  2.  
  3. You may need to recreate the Makefile to
  4. generate one that will work on your system.
  5.  
  6. To rebuild the Makefile under R4, using already installed
  7. R4 libraries, use xmkmf as follows:
  8.  
  9. xmkmf
  10.  
  11. If the R4 libraries are still installed in the X source tree, use:
  12.  
  13. xmkmf TOP
  14.  
  15. where TOP is the full path of the mit directory of your X distribution
  16. sources.
  17.  
  18. Alternately, use the ximake.sh shell script provided
  19. in the TOP/util/scripts directory, something like the following:
  20.  
  21. TOP/util/scripts/ximake.sh -i TOP
  22.  
  23. where TOP is the full path of the mit directory of your X distribution
  24. sources.
  25. To rebuild the Makefile under R4, using already installed
  26. R4 libraries, use xmkmf as follows:
  27.  
  28. xmkmf
  29.  
  30. If the R4 libraries are still installed in the X source tree, use:
  31.  
  32. xmkmf TOP
  33.  
  34. where TOP is the full path of the mit directory of your X distribution
  35. sources.
  36.  
  37. Alternately in R4, and always in R3, use the ximake.sh shell script 
  38. provided in the TOP/util/scripts directory, something like the 
  39. following:
  40.  
  41. TOP/util/scripts/ximake.sh -i TOP
  42.  
  43. where TOP is the full path of the mit directory of your X distribution
  44. sources.
  45. Without the -i flag, the Makefile will use libraries and include
  46. files in the X source tree.  This will only work if you have compiled 
  47. the Core distribution from sources and have not yet cleaned out all 
  48. the object files and libraries from the source tree.  Many 
  49. people clean out these files after installing the executables and 
  50. libraries in order to make disk space for compiling things in contrib.
  51. So normally you want to use -i, or xmkmf alone.
  52.  
  53. If you want to compile the programs under R3, use the following command
  54. when you start the make:
  55.  
  56. make DEFINES=-DX11R3
  57.  
  58. If you want to compile the programs with -g to let you debug using
  59. a debugger such as dbx, use:
  60.  
  61. make "CC=cc -g"
  62.  
  63. If you do not have the sources for X, you may not have the
  64. ximake.sh script, and you may not have the configuration files
  65. that \f(CWimake\fP requires.  If this is the case, you can try
  66. the provided default Makefiles, or you can compile manually:
  67.  
  68. cc -o progname progname.c -lXaw -lXmu -lXt -lX11
  69.